import 'package:dio/dio.dart';

import 'utils.dart';

class HttpInterceptors extends InterceptorsWrapper {
  @override
  Future onRequest(RequestOptions options) {
    // options.headers['token'] = "";
    // options.headers['memberId'] = "";
    options.headers['timestamp'] = DateTime.now().millisecondsSinceEpoch;
    options.headers['appSession'] = "";
    options.headers['deviceId'] = "";
    options.headers['signature'] = generateSignature(options);
    return super.onRequest(options);
  }

  @override
  Future onResponse(Response response) {
    return super.onResponse(response);
  }

  @override
  Future onError(DioError err) {
    return super.onError(err);
  }
}
